package com.foreknow.demo3;

public class B extends A{
    public B(String name) {
        // super可以调用父类中的构造器
        super(name);
    }

    public static void main(String[] args) {
        B b = new B("tom");

    }
}
